﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SSeqMarketItem extends IMessageBase
    {
        public var recordType:int;
        public var amount:int;
        public var targetPage:int;
        public var totalPage:int;
        public var marketItems:Array;
        public const _type:int = 16201;
        public static var _regist:SSeqMarketItem = new SSeqMarketItem(true);

        public function SSeqMarketItem(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SSeqMarketItem();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.recordType);
            param1.writeInt(this.amount);
            param1.writeInt(this.targetPage);
            param1.writeInt(this.totalPage);
            SeqMarketItemHelper.write(param1, this.marketItems);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.recordType = param1.readInt();
            this.amount = param1.readInt();
            this.targetPage = param1.readInt();
            this.totalPage = param1.readInt();
            this.marketItems = SeqMarketItemHelper.read(param1);
            return;
        }// end function

    }
}
